import commonSer from '../api/common.service.js';
import loginSer from '../api/login.service.js';
import orderSer from '../api/order.service.js';
import bzSer from '../api/bz.service.js';
import qjSer from '../api/qj.service.js';

// 此处第二个参数vm，就是我们在页面使用的this，你可以通过vm获取vuex等操作，更多内容详见uView对拦截器的介绍部分：
const install = (Vue, vm) => {
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = {
		myUploadFile: (params = {}) => vm.$u.post(commonSer.myUploadFile, params),
		getMapPointList: (params = {}) => vm.$u.post(commonSer.getMapPointList, params, {
			'content-type': 'application/x-www-form-urlencoded'
		}),
		getTeamAllCarList: (params = {}) => vm.$u.post(commonSer.getTeamAllCarList, params),
		getUnRouteBzBaseData: (params = {}) => vm.$u.post(commonSer.getUnRouteBzBaseData, params),
		getOrderShareTitle: (params = {}) => vm.$u.post(commonSer.getOrderShareTitle, params),


		addMapPointTrack: (params = {}) => vm.$u.post(loginSer.addMapPointTrack, params),
		getLUserInfo: (params = {}) => vm.$u.post(loginSer.getLUserInfo, params),
		getMapPointTrackList: (params = {}) => vm.$u.post(loginSer.getMapPointTrackList, params),
		wxDecodePhone: (params = {}) => vm.$u.post(loginSer.wxDecodePhone, params),
		wxMpLogin: (params = {}) => vm.$u.post(loginSer.wxMpLogin, params),
		sendSmsCode: (params = {}) => vm.$u.post(loginSer.sendSmsCode, params),
		smsLogin: (params = {}) => vm.$u.post(loginSer.smsLogin, params),
		passLogin: (params = {}) => vm.$u.post(loginSer.passLogin, params),
		getCompanyByPhone: (params = {}) => vm.$u.post(loginSer.getCompanyByPhone, params),
		getLUserOpenid: (params = {}) => vm.$u.post(loginSer.getLUserOpenid, params),
		getLuserInfo: (params = {}) => vm.$u.post(loginSer.getLuserInfo, params),
		logout: (params = {}) => vm.$u.post(loginSer.logout, params),

		getNoOrderList: (params = {}) => vm.$u.post(orderSer.getNoOrderList, params),
		findAccidentNoticeSetPageList: (params = {}) => vm.$u.post(orderSer.findAccidentNoticeSetPageList,
			params),
		accidentNotice: (params = {}) => vm.$u.post(orderSer.accidentNotice, params),
		confirmHelpGath: (params = {}) => vm.$u.post(orderSer.confirmHelpGath, params),
		updCarOrder: (params = {}) => vm.$u.post(orderSer.updCarOrder, params),
		goMeetCus: (params = {}) => vm.$u.post(orderSer.goMeetCus, params),
		confirmOrder: (params = {}) => vm.$u.post(orderSer.confirmOrder, params),
		driverRefuseOrder: (params = {}) => vm.$u.post(orderSer.driverRefuseOrder, params),
		valArrSpOrEp: (params = {}) => vm.$u.post(orderSer.valArrSpOrEp, params),
		confirmOrderGo: (params = {}) => vm.$u.post(orderSer.confirmOrderGo, params),
		confirmOrderBack: (params = {}) => vm.$u.post(orderSer.confirmOrderBack, params),
		confirmOrderDownCar: (params = {}) => vm.$u.post(orderSer.confirmOrderDownCar, params),
		getAlOrderList: (params = {}) => vm.$u.post(orderSer.getAlOrderList, params),
		pdsDetail: (params = {}) => vm.$u.post(orderSer.pdsDetail, params),
		getOrderDetail: (params = {}) => vm.$u.post(orderSer.getOrderDetail, params),
		disposeAccident: (params = {}) => vm.$u.post(orderSer.disposeAccident, params),
		findOrderScheduleByOrderNum: (params = {}) => vm.$u.post(orderSer.findOrderScheduleByOrderNum, params),
		driverCallCus: (params = {}) => vm.$u.post(orderSer.driverCallCus, params),
		getLWalletList: (params = {}) => vm.$u.post(orderSer.getLWalletList, params),
		getOrderProcessList: (params = {}) => vm.$u.post(orderSer.getOrderProcessList, params),
		deleteOrder: (params = {}) => vm.$u.post(orderSer.deleteOrder, params),
		receiveOrRefuse: (params = {}) => vm.$u.post(orderSer.receiveOrRefuse, params),

		findComboCusList: (params = {}) => vm.$u.post(orderSer.findComboCusList, params),
		offlineDispatchCar: (params = {}) => vm.$u.post(orderSer.offlineDispatchCar, params),
		filterCar: (params = {}) => vm.$u.post(orderSer.filterCar, params),
		filterCar2: (params = {}) => vm.$u.post(orderSer.filterCar2, params),
		filterCar3: (params = {}) => vm.$u.post(orderSer.filterCar3, params),
		findCarCombo: (params = {}) => vm.$u.post(orderSer.findCarCombo, params),
		findCompanyCusList: (params = {}) => vm.$u.post(orderSer.findCompanyCusList, params),
		confirmSendOrder: (params = {}) => vm.$u.post(orderSer.confirmSendOrder, params),
		changeUnder: (params = {}) => vm.$u.post(orderSer.changeUnder, params),
		findCanUseCar: (params = {}) => vm.$u.post(orderSer.findCanUseCar, params),
		changeCar: (params = {}) => vm.$u.post(orderSer.changeCar, params),
		findCanUseDriver: (params = {}) => vm.$u.post(orderSer.findCanUseDriver, params),
		changeDriver: (params = {}) => vm.$u.post(orderSer.changeDriver, params),
		getOrderListByReceiveAriport: (params = {}) => vm.$u.post(orderSer.getOrderListByReceiveAriport,
			params),
		getOrderGroupCarList: (params = {}) => vm.$u.post(orderSer.getOrderGroupCarList,
			params),
		release: (params = {}) => vm.$u.post(orderSer.release, params),
		cancelRelease: (params = {}) => vm.$u.post(orderSer.cancelRelease, params),
		merge: (params = {}) => vm.$u.post(orderSer.merge, params),
		mergeQuerySend: (params = {}) => vm.$u.post(orderSer.mergeQuerySend, params),
		cancelRelease: (params = {}) => vm.$u.post(orderSer.cancelRelease, params),
		received: (params = {}) => vm.$u.post(orderSer.received, params),
		queryOtherReceivedNoCar: (params = {}) => vm.$u.post(orderSer.queryOtherReceivedNoCar, params),
		mergeQuery: (params = {}) => vm.$u.post(orderSer.mergeQuery, params),
		queryReceivedAndCar: (params = {}) => vm.$u.post(orderSer.queryReceivedAndCar, params),
		getStationListPages: (params = {}) => vm.$u.post(orderSer.getStationListPages, params),
		findTravelWayInfo: (params = {}) => vm.$u.post(orderSer.findTravelWayInfo, params, {
			'content-type': 'application/x-www-form-urlencoded'
		}),
		JLConfirmSend: (params = {}) => vm.$u.post(orderSer.JLConfirmSend, params),
		cancelDispatchCar: (params = {}) => vm.$u.post(orderSer.cancelDispatchCar, params),
		addOrderByWx: (params = {}) => vm.$u.post(orderSer.addOrderByWx, params),
		getCarConfigurationType: (params = {}) => vm.$u.post(orderSer.getCarConfigurationType, params),
		getAllDutyOfCustom: (params = {}) => vm.$u.post(orderSer.getAllDutyOfCustom, params),
		getServiceMans: (params = {}) => vm.$u.post(orderSer.getServiceMans, params),
		getPrice: (params = {}) => vm.$u.post(orderSer.getPrice, params),
		getOrderReadyList: (params = {}) => vm.$u.post(orderSer.getOrderReadyList, params),
		confirmGrabOrder: (params = {}) => vm.$u.post(orderSer.confirmGrabOrder, params),

		getBzOrderList: (params = {}) => vm.$u.post(bzSer.getBzOrderList, params),
		getAllNotRouteMoneyTypes: (params = {}) => vm.$u.post(bzSer.getAllNotRouteMoneyTypes, params),
		getAllRouteMoneyTypes: (params = {}) => vm.$u.post(bzSer.getAllRouteMoneyTypes, params),
		findComboCusList: (params = {}) => vm.$u.post(bzSer.findComboCusList, params),


		findStationCombo: (params = {}) => vm.$u.post(bzSer.findStationCombo, params),
		getOrderOfRouteBz: (params = {}) => vm.$u.post(bzSer.getOrderOfRouteBz, params),
		setOrderBzState: (params = {}) => vm.$u.post(bzSer.setOrderBzState, params),
		getParkingPlace: (params = {}) => vm.$u.post(bzSer.getParkingPlace, params),
		getOrderXcjzDetail: (params = {}) => vm.$u.post(bzSer.getOrderXcjzDetail, params),
		carServiceList: (params = {}) => vm.$u.post(bzSer.carServiceList, params),
		carScheduleList: (params = {}) => vm.$u.post(bzSer.carScheduleList, params),
		addFlightTrainInfo: (params = {}) => vm.$u.post(bzSer.addFlightTrainInfo, params),
		adUpFlightTrainInfo: (params = {}) => vm.$u.post(bzSer.adUpFlightTrainInfo, params),
		delFlightTrainInfo: (params = {}) => vm.$u.post(bzSer.delFlightTrainInfo, params),
		findTravelAdviceFollowList: (params = {}) => vm.$u.post(bzSer.findTravelAdviceFollowList, params),
		followUpTravelAdviceByTeam: (params = {}) => vm.$u.post(bzSer.followUpTravelAdviceByTeam, params),
		modifyFlightTrainInfo: (params = {}) => vm.$u.post(bzSer.modifyFlightTrainInfo, params),
		getFlightTrainInfoPages: (params = {}) => vm.$u.post(bzSer.getFlightTrainInfoPages, params),
		adupOrderRouteBz: (params = {}) => vm.$u.post(bzSer.adupOrderRouteBz, params),
		delOrderXcjz: (params = {}) => vm.$u.post(bzSer.delOrderXcjz, params),
		adupAllUnRouteBz: (params = {}) => vm.$u.post(bzSer.adupAllUnRouteBz, params),
		getMaintenanceTips: (params = {}) => vm.$u.post(bzSer.getMaintenanceTips, params),
		getNoBxList: (params = {}) => vm.$u.post(bzSer.getNoBxList, params),
		getAlBxList: (params = {}) => vm.$u.post(bzSer.getAlBxList, params),
		getBzDetail: (params = {}) => vm.$u.post(bzSer.getBzDetail, params),
		delBz: (params = {}) => vm.$u.post(bzSer.delBz, params),



		getQjTypeList: (params = {}) => vm.$u.post(qjSer.getQjTypeList, params),
		getQjList: (params = {}) => vm.$u.post(qjSer.getQjList, params),
		findLelList: (params = {}) => vm.$u.post(qjSer.findLelList, params),
		checkLeave: (params = {}) => vm.$u.post(qjSer.checkLeave, params),
		companydelLel: (params = {}) => vm.$u.post(qjSer.companydelLel, params),
		findVehicleAbnormalityList: (params = {}) => vm.$u.post(qjSer.findVehicleAbnormalityList, params),
		findVehicleAbnormalityList2: (params = {}) => vm.$u.post(qjSer.findVehicleAbnormalityList2, params),
		checkAbnormality: (params = {}) => vm.$u.post(qjSer.checkAbnormality, params),
		checkStaffReimburse: (params = {}) => vm.$u.post(qjSer.checkStaffReimburse, params),
		findCarCombo: (params = {}) => vm.$u.post(qjSer.findCarCombo, params),
		getVehicleAbnormalityById: (params = {}) => vm.$u.post(qjSer.getVehicleAbnormalityById, params),
		disposeAbnormality: (params = {}) => vm.$u.post(qjSer.disposeAbnormality, params),
		findStaffReimList: (params = {}) => vm.$u.post(qjSer.findStaffReimList, params),
		findStaffCombo: (params = {}) => vm.$u.post(qjSer.findStaffCombo, params),
		findTrusteeshipMeCombo: (params = {}) => vm.$u.post(qjSer.findTrusteeshipMeCombo, params),
		getTradeTypes: (params = {}) => vm.$u.post(qjSer.getTradeTypes, params),
		findMiniProgramInfoNoLogin: (params = {}) => vm.$u.post(qjSer.findMiniProgramInfoNoLogin, params),
		findMiniProgramInfo: (params = {}) => vm.$u.post(qjSer.findMiniProgramInfo, params),
		getCarConfigurationType: (params = {}) => vm.$u.post(qjSer.getCarConfigurationType, params),
		findSeatsTeamPeriodList: (params = {}) => vm.$u.post(qjSer.findSeatsTeamPeriodList, params),
		delSeatsTeamPeriod: (params = {}) => vm.$u.post(qjSer.delSeatsTeamPeriod, params),
		adupSeatsTeamPeriod: (params = {}) => vm.$u.post(qjSer.adupSeatsTeamPeriod, params),
		getSeatsTeamPeriodById: (params = {}) => vm.$u.post(qjSer.getSeatsTeamPeriodById, params),
		adupTeamPeriod: (params = {}) => vm.$u.post(qjSer.adupTeamPeriod, params),
		getDriverMoneyTypes: (params = {}) => vm.$u.post(qjSer.getDriverMoneyTypes, params),
		findBankTradeList: (params = {}) => vm.$u.post(qjSer.findBankTradeList, params),
		getWalletListForCompany: (params = {}) => vm.$u.post(qjSer.getWalletListForCompany, params),
		sumCusGathPay: (params = {}) => vm.$u.post(qjSer.sumCusGathPay, params),
		findCusTypeCombo: (params = {}) => vm.$u.post(qjSer.findCusTypeCombo, params),
		getServiceMans: (params = {}) => vm.$u.post(qjSer.getServiceMans, params),
		findBankCombo: (params = {}) => vm.$u.post(qjSer.findBankCombo, params),
		findBalanceByBankInfo: (params = {}) => vm.$u.post(qjSer.findBalanceByBankInfo, params),
		addBtl: (params = {}) => vm.$u.post(qjSer.addBtl, params),
		delBtl: (params = {}) => vm.$u.post(qjSer.delBtl, params),
		modifyBtl: (params = {}) => vm.$u.post(qjSer.modifyBtl, params),
		findMtypeCombo: (params = {}) => vm.$u.post(qjSer.findMtypeCombo, params),

		getQjDetail: (params = {}) => vm.$u.post(qjSer.getQjDetail, params),
		adupQj: (params = {}) => vm.$u.post(qjSer.adupQj, params),
		delQj: (params = {}) => vm.$u.post(qjSer.delQj, params),



	};
}

// 需要排除不传TOKEN的方法
export const methodsExcludeToken = [

];

export default {
	install
}